package com.tianhao.luo.v2;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Random;

/**
 * @ClassName: Wizard
 * @Description: 安装过程
 * 每个步骤中都有相关的业务逻辑完成指定的任务，我们使用一个随机函数来代替业务执行的返回值
 * @author: tianhao.luo@hand-china.com
 * @date: 2020/7/14  17:19
 */
public class Wizard {
    private Random rand = new Random(System.currentTimeMillis());
    private static final Logger LOGGER = LoggerFactory.getLogger(Wizard.class);

    public int first() {
        LOGGER.info("执行第一个方法");
        return rand.nextInt(100);
    }

    public int second() {
        LOGGER.info("执行第二个方法");
        return rand.nextInt(100);
    }

    public int third() {
        LOGGER.info("执行第三个方法");
        return rand.nextInt(100);
    }
}
